<?php

class Ajax_load extends Controller {
	
	function Ajax_load()
	{
		parent::Controller();
	}
	
	function index() {
		//do nothing
	}
	
	function topnav() {
		if (!$this->session->userdata('ss_email')) {
			echo anchor('login',"Dang nhap") . ' | ' . anchor('register',"Dang ky");
		} else {
			echo 'Hello '.$this->session->userdata('ss_email').' |' .anchor('ads',"Quang cao cua toi").' |' .anchor('member',"Thong tin tai khoan").' |' .anchor('logout',"Thoat");
		}	
	}
	
	function profile() {
		echo '
			<table>
            	<tr>
                	<td>'.$this->lang->line('firstname').'</td>
                    <td><span style="display:inline-block">'.$this->session->userdata('ss_firstname').'</span></td>
                </tr>
                <tr>
                	<td>'.$this->lang->line('lastname').'</td>
                    <td><span style="display:inline-block">'.$this->session->userdata('ss_lastname').'</span></td>
                </tr>
                 <tr>
                	<td>'.$this->lang->line('email').'</td>
                    <td><span style="display:inline-block">'.$this->session->userdata('ss_email').'</span></td>
                </tr>
            </table>	
		';	
	}
}